package com.skwen.delivery.superdelivery.http;

import com.skwen.delivery.superdelivery.login.bean.MyResponseEntity;
import com.skwen.delivery.superdelivery.login.bean.User;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * Created by yundantian on 2017/9/25.
 */

public interface AppUrl {


    @POST(value = "user/register")
    Call<MyResponseEntity> register(@Body User user);

    @GET(value = "user/login")
    Call<MyResponseEntity> login(@Query("userAccount") String userAccount, @Query("userPsd") String userPsd);

    @GET(value = "user/getListUser")
    Call<ResponseBody> getListUser();
}
